package com.ruoyi.swla2.service.impl;

import com.ruoyi.swla2.domain.BasicDfq;
import com.ruoyi.swla2.mapper.BasicDfqMapper;
import com.ruoyi.swla2.service.IBasicDfqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 大分区配置Service业务层处理
 *
 * @author gdqt
 * @date 2023-06-16
 */
@Service
public class BasicDfqServiceImpl implements IBasicDfqService {
    @Autowired
    private BasicDfqMapper basicDfqMapper;

    /**
     * 查询大分区配置
     *
     * @param ID 大分区配置主键
     * @return 大分区配置
     */
    @Override
    public BasicDfq selectBasicDfqByID(Long ID) {
        return basicDfqMapper.selectBasicDfqByID(ID);
    }

    /**
     * 查询大分区配置列表
     *
     * @param basicDfq 大分区配置
     * @return 大分区配置
     */
    @Override
    public List<BasicDfq> selectBasicDfqList(BasicDfq basicDfq) {
        return basicDfqMapper.selectBasicDfqList(basicDfq);
    }

    /**
     * 新增大分区配置
     *
     * @param basicDfq 大分区配置
     * @return 结果
     */
    @Override
    public int insertBasicDfq(BasicDfq basicDfq) {
        return basicDfqMapper.insertBasicDfq(basicDfq);
    }

    /**
     * 修改大分区配置
     *
     * @param basicDfq 大分区配置
     * @return 结果
     */
    @Override
    public int updateBasicDfq(BasicDfq basicDfq) {
        return basicDfqMapper.updateBasicDfq(basicDfq);
    }

    /**
     * 批量删除大分区配置
     *
     * @param IDs 需要删除的大分区配置主键
     * @return 结果
     */
    @Override
    public int deleteBasicDfqByIDs(Long[] IDs) {
        return basicDfqMapper.deleteBasicDfqByIDs(IDs);
    }

    /**
     * 删除大分区配置信息
     *
     * @param ID 大分区配置主键
     * @return 结果
     */
    @Override
    public int deleteBasicDfqByID(Long ID) {
        return basicDfqMapper.deleteBasicDfqByID(ID);
    }

    @Override
    public BasicDfq getBasicDfqByAreaId(String areaId) {
        return basicDfqMapper.getBasicDfqByAreaId(areaId);
    }
}
